def reverse(s):
    if s == "":
        return s
    else:
        return reverse (s[1:])+s[0]
string =input("请输入一个字符串：")
print(reverse(string))